module.exports = {
    devServer: {
        proxy: {
            '/api/': {
                target: 'http://localhost:9090/',
                ws: false,
                changeOrigin: true,
                pathRewrite: {
                    '/api': ''
                }
            }
        }
    },
    configureWebpack: {
        resolve: {extensions: [".ts", ".tsx", ".js", ".json"]},
        module: {
            rules: [
                {
                    test: /\.tsx?$/,
                    loader: 'ts-loader',
                    exclude: /node_modules/,
                    options: {
                        appendTsSuffixTo: [/\.vue$/],
                    }
                }
            ]
        }
    }
}